<?php
namespace app\validate;

use think\facade\Request;
use think\Validate;

class WmsWarehouse extends  Validate{


    protected $rule =   [

        'name'=> 'require',
        'goods_types'=>'require',
        'warehouse_type_id'=>'require',
        'attr_ids'=>'require',
        'length'=>'require',

        'width'=>'require',
        'height'=>'require',
        'province_id'=>'require',
        'city_id'=>'require',
        'district_id'=>'require',
        'longitude'=>'require',
        'dimension' =>'require',
        'address'=>'require',

    ];

    protected $message  =   [

        'name.require' => '仓库名称不能为空',
        'goods_types.require' => '货物类型不能为空',
        'warehouse_type_id.require' => '仓库类型不能为空',
        'attr_ids.require' => '仓库属性不能为空',
        'length.require' => '长度不能为空',
        'width.require' => '宽度不能为空',
        'height.require' => '高不能为空',
        'province_id.require' => '省不能为空',
        'city_id.require' => '市不能为空',
        'district_id.require' => '区不能为空',
        'longitude.require' => '经度不能为空',
        'dimension.require' => '纬度不能为空',
        'address.require' => '地址不能为空',

    ];
}